/**
 * @ 点类
 */
export class Point {
  x: number;
  y: number;

  constructor(x: number, y: number) {
    this.x = x;
    this.y = y;
  }
}

export class TextPoint {
  x: number;
  y: number;
  text: string;
  size: number;
  color: string;
  anchor: string;

  constructor(x: number, y: number, text: string, size: number = 12, color: string = '#000000', anchor: string = 'mrddle') {
    this.x = x;
    this.y = y;
    this.text = text;
    this.size = size;
    this.color = color;
    this.anchor = anchor;
  }
}
